module.exports = app => {
    const { STRING, INTEGER } = app.Sequelize;

    const TopicLesson = app.model.define('topic-lesson-user', {
        uid: {
            type: INTEGER,
            allowNull: false,
        },
        lessonId: {
            type: INTEGER,
            allowNull: false,
        },
    }, {
        timestamps: true,
        underscored: false,
    });

    // TopicLesson.associate = function () {
    //     TopicLesson.Topic = TopicLesson.belongsTo(app.model.Topic, {
    //         foreignKey: "topicId",
    //         as: "topic"
    //     });
    // };


    return TopicLesson;
};
